package cn.zzqayy.elasticsearch.simple.example.entity.elasticsearch;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zzqayy
 * @date 2021/2/25
 */
@Data
@Document(indexName = "uwt")
public class WorkType {

    @Id
    private Integer id;

    @Field(type = FieldType.Auto)
    private String workTypeName;
}
